import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
Vue.config.productionTip = false
// import axios from 'axios';

// Vue.prototype.$http = axios;
// axios.defaults.baseURL='https://d33a5037-6c63-4e92-8bb1-30018ab701ea.bspapp.com/http';


// import '/src/components/vant-global/index.js'
import '@/components/vant-global' //全局组件
import '@/common/iconfont'  //图标引入
// @===/src
// webpack 内部设置一个别

// 混入
import mixin from '@/common/mixins'
Vue.mixin(mixin)


import init from '@/common/init'

Vue.prototype.$Bus = new Vue()

const app = new Vue({
  router,
  store,
  render: h => h(App)
})
init().then(res=>{
   app.$mount('#app')
}).catch(err=>{
  app.$mount("#app");
})

